<!DOCTYPE html>
<html >
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>绝对定位</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        .parent{
            width: 500px;
            height: 500px;
            margin: 20px auto;
            background-color: burlywood;
            position: relative;
        }
        .child{
            width: 200px;
            height: 200px;
            background-color: red;
            position: absolute;
            right: 20px;
            bottom: 20px;
        }
    </style>
</head>
<body>
    <div class="parent">
       <div class="child"></div>
    </div>
</body>
</html>